﻿import request from '/@/utils/request';
enum Api {
  AddBusFavorites = '/api/busFavorites/add',
  DeleteBusFavorites = '/api/busFavorites/delete',
  UpdateBusFavorites = '/api/busFavorites/update',
  PageBusFavorites = '/api/busFavorites/page',
  GetSysUserDropdown = '/api/busFavorites/SysUserDropdown',
}

// 增加收藏夹
export const addBusFavorites = (params?: any) =>
	request({
		url: Api.AddBusFavorites,
		method: 'post',
		data: params,
	});

// 删除收藏夹
export const deleteBusFavorites = (params?: any) => 
	request({
			url: Api.DeleteBusFavorites,
			method: 'post',
			data: params,
		});

// 编辑收藏夹
export const updateBusFavorites = (params?: any) => 
	request({
			url: Api.UpdateBusFavorites,
			method: 'post',
			data: params,
		});

// 分页查询收藏夹
export const pageBusFavorites = (params?: any) => 
	request({
			url: Api.PageBusFavorites,
			method: 'post',
			data: params,
		});

export const getSysUserDropdown = () =>
		request({
		url: Api.GetSysUserDropdown,
		method: 'get'
		});

